package cn.hinglo.gameclaw.user.bean;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @createTime: 2017/12/29
 * @author: HingLo
 * @description: 邀请码使用记录
 */
@Data
@Accessors(chain = true)
@Table(name = "invitation")
public class Invitation {
    @Id
    private Long id;
    /**
     * 填写人的ID
     */
    @Column(name = "user_id")
    private String userId;
    /**
     * 填写的邀请码
     */
    private String code;

    /**
     * 该次赠送的钻石数量
     */
    private Integer gold;

    /**
     * 填写的时间
     */
    private Date date;
}
